# cmake/lib/CMakeLists.txt

# 编译成动态库或静态库
add_library(a SHARED a.c) # 动态库
add_library(b STATIC b.c) # 静态库